package Question;

import javax.swing.*;
import java.util.Arrays;

/**
 * Description:问题类
 */
public class Question {
    private int Number;//题号
    private String q;//题目描述
    private String[] choice;//选项
    private String answer;//答案

    public Question(int number, String q, String[] choice, String answer) {
        Number = number;
        this.q = q;
        this.choice = choice;
        this.answer = answer;
    }

    public int getNumber() {
        return Number;
    }

    public String getQ() {
        return q;
    }

    public String[] getChoice() {
        return choice;
    }

    public String getAnswer() {
        return answer;
    }

    @Override
    public String toString() {
        return q + "\n" +
                Arrays.toString(choice) + "\n" +
                answer;
    }
}